#!/bin/bash
MasterIP1=192.168.0.51
MasterIP2=192.168.0.52
MasterIP3=192.168.0.53
MasterPort=6443

docker run  -d --restart=always --name HAProxy-K8S -p 6444:6444 -p 8081:8081\
            -e MasterIP1=$MasterIP1 \
            -e MasterIP2=$MasterIP2 \
            -e MasterIP3=$MasterIP3 \
            -e MasterPort=$MasterPort \
            -v /opt/lb/etc/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg \
            wise2c/haproxy-k8s
